//#include <string>
#include "transaction.h"
#include "gtest/gtest.h"

//using namespace std;
// Tests factorial of negative numbers.
TEST(TransactionToStringTest, DefaultTypeStatusAction) {
  // This test is named "Negative", and belongs to the "FactorialTest"
  // test case.
  stock_trade::Date date(2012, 12, 30);
  stock_trade::Time time(13, 30, 45);
  stock_trade::Transaction transaction("stock code", "stock name", date, time, 9.8, 1000);
  const char* str = "stock name stock code 2012-12-30 13:30:45	 9.8 1000 2 2 NONE";
  EXPECT_STREQ(str, transaction.ToString().c_str());
  //EXPECT_EQ(1, Factorial(-1));
  //EXPECT_TRUE(Factorial(-10) > 0);

  // <TechnicalDetails>
  //
  // EXPECT_EQ(expected, actual) is the same as
  //
  //   EXPECT_TRUE((expected) == (actual))
  //
  // except that it will print both the expected value and the actual
  // value when the assertion fails.  This is very helpful for
  // debugging.  Therefore in this case EXPECT_EQ is preferred.
  //
  // On the other hand, EXPECT_TRUE accepts any Boolean expression,
  // and is thus more general.
  //
  // </TechnicalDetails>
}
